package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * <p>
 * 
 * </p>
 *
 * @author Webgasd
 * @since 2021-04-26
 */
@TableName("sys_role_acl")
public class SysRoleAcl extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色id
     */
    @TableField("role_id")
    private Integer roleId;

    /**
     * 权限id
     */
    @TableField("acl_id")
    private Integer aclId;

    /**
     * 操作者
     */
    @TableField("operator")
    private String operator;

    /**
     * 最后一次更新的时间
     */
    @TableField("operate_time")
    private Date operateTime;

    /**
     * 最后一次更新者的ip
     */
    @TableField("operate_ip")
    private String operateIp;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public Integer getAclId() {
        return aclId;
    }

    public void setAclId(Integer aclId) {
        this.aclId = aclId;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
    public String getOperateIp() {
        return operateIp;
    }

    public void setOperateIp(String operateIp) {
        this.operateIp = operateIp;
    }

    @Override
    public String toString() {
        return "SysRoleAcl{" +
            "id=" + id +
            ", roleId=" + roleId +
            ", aclId=" + aclId +
            ", operator=" + operator +
            ", operateTime=" + operateTime +
            ", operateIp=" + operateIp +
        "}";
    }
}
